#include "problems/152.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem152)
{
    problem_152::Solution s;
    vector<int> nums{2, 3, -2, 4};
    ASSERT_EQ(s.maxProduct(nums), 6);
    nums = {-2, 0, -1};
    ASSERT_EQ(s.maxProduct(nums), 0);
}